package com.itheima.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author yunfei
 * @date 2022年10月20日 15:50
 */
@Component
public class RabbitMQListener {

    @RabbitListener(queues = "delay_queue")
    public void handlerMsg(String msg){
        System.out.println("msg = " + msg);
    }

}
